package interfaces;

import java.awt.GridBagLayout;

import javax.swing.BorderFactory;
import javax.swing.JDialog;
import javax.swing.JPanel;

import services.User;

public class ForecastDialog extends JPanel {
	private static final long serialVersionUID = 1L;
	private JDialog dialog;
	private User user;
	public ForecastDialog(JDialog dialog, User user) {
		this.dialog = dialog;
		this.user = user;
		initComponents();
	}
	private void initComponents() {
		JPanel panel = new JPanel(new GridBagLayout());
		panel.setBorder(BorderFactory.createTitledBorder("Настройки"));
		
	}
	public static void showDialog(User user) {
		JDialog dialog = new JDialog();
		ForecastDialog authDialog = new ForecastDialog(dialog, user);
		dialog.add(authDialog);
		dialog.setTitle("Прогноз");
		dialog.setModal(true);
		dialog.setLocationRelativeTo(null);
		dialog.pack();
		dialog.setVisible(true);
	}
}
